Simulate Drag
Command Prototype
Mouse.Drag(sx, sy, dx, dy, iButton, sKeyModifiers,optionArgs)
Command Description
Drag the mouse from one location to another
Parameter Description
- Required Parameter
- sx-- The starting X-coordinate to drag the mouse
- sy-- The starting Y-coordinate to drag the mouse
- dx-- The ending X-coordinate to drag the mouse
- dy-- The ending Y-coordinate to drag the mouse
- iButton--Mouse button {left:left button, right:right button, middle:middle button}
- sKeyModifiers--Keyboard keys pressed down when a mouse action is triggered, the following options are available: Alt, Ctrl, Shift, Win
- Optional Parameter
- iDelayAfter--The delay time (in milliseconds) after executing activities, and the default time is 300 milliseconds.
- iDelayBefore--The delay time (in millisecons) before the activity starts any action. The default amount of time is 200 milliseconds.